package com.yuncheng.oaApi.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuncheng.vo.CurrentUserVo;
import com.yuncheng.oaApi.vo.OaJbzbVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public interface OaJbzbFlowMapper {

    Page<OaJbzbVo> flowJobPage(Page<OaJbzbVo> page,
                               @Param("onlyCurrentUser") boolean onlyCurrentUser,
                               @Param("user") CurrentUserVo user,
                               @Param("spcyFlowVo") OaJbzbVo oaJbzbVo);

    Page<OaJbzbVo> flowJkPage(Page<OaJbzbVo> page,
                              @Param("onlyCurrentUser") boolean onlyCurrentUser,
                              @Param("user") CurrentUserVo user,
                              @Param("spcyFlowVo") OaJbzbVo oaJbzbVo);

    List<OaJbzbVo> flowJkList(
            @Param("onlyCurrentUser") boolean onlyCurrentUser,
            @Param("user") CurrentUserVo user,
            @Param("spcyFlowVo") OaJbzbVo oaJbzbVo);


    Page<OaJbzbVo> selectmyyb(Page<OaJbzbVo> page, @Param("spcyFlowVo") OaJbzbVo oaJbzbVo, String fdbrid, String fdbr);

    Page<OaJbzbVo> myYbFlowPage(Page<OaJbzbVo> page,
                                @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                @Param("user") CurrentUserVo user,
                                @Param("spcyFlowVo") OaJbzbVo oaJbzbVo);


}
